import Vue from 'vue'
import Router from 'vue-router'
import Login from '@/pages/Login'
import ZhuCe from '@/pages/ZhuCe'
import Home from '@/pages/Home'
import EntList from '@/pages/EntList'
import ListDetail from '@/pages/ListDetail'
import Operate from '@/pages/Operate'
import Personal from '@/pages/Personal'
import About from '@/pages/About'
import Account from '@/pages/Account'
import Repass from '@/pages/Repass'
import Point from '@/pages/Point'
import Address from '@/pages/Address'
import Add from '@/pages/Add'
import Idea from '@/pages/Idea'
import BoxAppointment from '@/pages/BoxAppointment'
import Sure from '@/pages/Sure'
import Detial from '@/pages/Detial'
import Edit from '@/pages/Edit'

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      name: 'login',
      component: Login
    },
    {
      path: '/login',
      name: 'login',
      component: Login
    },
    {
      path: '/zhuce',
      name: 'zhuce',
      component: ZhuCe
    },
    {
      path: '/home',
      name: 'home',
      component: Home
    },
    {
      path: '/entlist',
      name: 'entlist',
      component: EntList
    },
    {
      path: '/listDetail/:id',
      name: 'listDetail',
      component: ListDetail
    },
    {
      path: '/operate/:id/:operate/:version',
      name: 'operate',
      component: Operate
    },
    {
      path: '/personal',
      name: 'personal',
      component: Personal,
    },
    {
      path: '/about',
      name: 'about',
      component: About,
    },
    {
      path: '/account',
      name: 'account',
      component: Account,
    },
    {
      path: '/repass',
      name: 'repass',
      component: Repass,
    },
    {
      path: '/point',
      name: 'point',
      component: Point,
    },
    {
      path: '/address',
      name: 'address',
      component: Address,
    },
    {
      path: '/add',
      name: 'add',
      component: Add,
    },
    {
      path: '/idea',
      name: 'idea',
      component: Idea,
    },
    {
      path: '/boxappointment',
      name: 'boxappointment',
      component: BoxAppointment,
    },
    {
      path: '/sure',
      name: 'sure',
      component: Sure,
    },
    {
      path: '/detial/:id/:points',
      name: 'detial',
      component: Detial,
    },
    {
      path: '/edit/:id/:name/:tel/:address/:isDefault',
      name: 'edit',
      component: Edit,
    }

  ]
})
